﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_TitleLike : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string key = Request.QueryString["key"];
        string table = Request.QueryString["tab"];
        string col = Request.QueryString["col"];
        string id = Request.QueryString["id"];
        string sql = "select * from "+table+" as a inner join  freetexttable(" + table + "," + col + ",'" + key.ToSql() + "') as b on a.id=b.[key]";
        if (id != "0")
        {
            sql += " where id<>" + id;
        }
        this.Repeater1.DataSource = DBFactory.GetConn().exeTable(sql);
        this.Repeater1.DataBind();
    }

    public override string StyleSheetTheme
    {
        get
        {
            //return base.StyleSheetTheme;
            return ConfigGlobal.GetGlobal().Theme;
        }
        set
        {
            base.StyleSheetTheme = value;
        }
    }
}
